<template>
  <div class="dashboard-container">
    <div class="divStatic">
      <div class="left">
        <div class="banner" />
        <div class="backlog">
          <div class="backlog-item" />
          <div class="backlog-item" />
          <div class="backlog-item" />
        </div>
      </div>
      <div class="right">
        <div class="notes" />
      </div>
    </div>
    <div id="main" style="width: 600px;height:400px;" />
  </div>
</template>

<script>
import * as echarts from 'echarts'
// import { DoughnutChart } from 'echarts/charts'
export default {
  name: 'Dashboard',
  mounted() {
    const myChart = echarts.init(document.getElementById('main'))

    const option = {
      tooltip: {
        trigger: 'item'
      },
      legend: {
        top: '5%',
        show: false,
        left: 'center'
      },
      series: [
        {
          type: 'pie',
          radius: ['40%', '70%'],
          avoidLabelOverlap: false,
          label: {
            show: false,
            position: 'center'
          },
          emphasis: {
            label: {
              show: false,
              fontSize: '40',
              fontWeight: 'bold'
            }
          },
          labelLine: {
            show: false
          },
          data: [
            { value: 1048, name: 'Search Engine' },
            { value: 735, name: 'Direct' },
            { value: 580, name: 'Email' },
            { value: 484, name: 'Union Ads' },
            { value: 300, name: 'Video Ads' }
          ]
        }
      ]
    }
    myChart.setOption(option)
  }
}
</script>

<style lang="scss" scoped>
.banner{
    width: 100%;
    height: 148px;
    background: linear-gradient(270deg,#ffc771,#ffa634);
    box-shadow: 0 0 6px 0 rgb(188 151 69 / 12%);
    border-radius: 12px;
}
.divStatic{
  display: flex;
  justify-content:space-between
}
.backlog{
  width: 100%;
  display: flex;
    height: 282px;
    background: black;
    box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
    border-radius: 12px;
    padding: 25px;
}
.left{
  display: flex;
  flex-direction: column;
}
.notes{
  width: 261px;
    height: 451px;
    background: #fff;
    box-shadow: 0 0 6px 0 rgb(144 142 142 / 17%);
    border-radius: 12px;
    padding: 30px;
}
.backlog-item{
    height: 186px;
    background: #fbf7f7;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
}
// .backlog-item:hover{

// }
</style>
